﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<List<kysec.RAL.EFToMySql.tb_user>>" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>BasicInfo</title>
    <script src="../../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <link href="../../Content/back/css/skin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
    function deleteInfo() {
        if (confirm("确认删除信息？删除后将无法恢复！")) {
            $.ajax({
                url: "/User/DeleteUserInfo",
                type: "post",
                cache: false,
                data: "userId=" + $("#userId").val(),
                success: function (result) {
                    if (result == "0") {
                        alert("删除失败！");
                    } else if (result == "1") {
                        alert("删除成功！");
                        window.location.href = "<%:kysec.CR.MyUrl.WebData.WEBURL %>/User/InfoList";
                    } else if (result == "2") {
                        alert("删除时发生异常！");
                    }
                }
            });
        }
    }
</script>
</head>
<body>
    <div>
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="17" height="29" valign="top" background="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/mail_leftbg.gif") %>"><img src="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/left-top-right.gif") %>" width="17" height="29" /></td>
    <td width="100%" height="29" valign="top" background="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/content-bg.gif") %>"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">用户信息</div></td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/mail_rightbg.gif") %>"><img src="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/nav-right-bg.gif") %>" width="16" height="29" /></td>
  </tr>

  <tr>
    <td height="71" valign="middle" background="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/mail_leftbg.gif") %>">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9"><table border="0" cellpadding="0" cellspacing="0"> 
     <tr>
            <td class="left_txt">当前位置：<a href="<%=kysec.CR.MyUrl.WebData.WEBURL %>/User/InfoList">用户管理</a> >> 用户基本信息</td>
      </tr></table>
   <div style="background-color:#97b9f0;min-height:1px;margin-bottom:10px;"></div>

        <div style="text-align:center;">
        <%if (Model == null)
          { %><span style="color:Red;font-size:xx-large;">操作有误，请正确操作……</span><a href="<%=kysec.CR.MyUrl.WebData.WEBURL %>/User/InfoList" title="点击返回用户列表" style="margin-left:10px;">返回</a><%}
          else
          {
              foreach (var item in Model)
              {  %>
               <div style="margin-top:10px;"><input type="hidden" id="userId" value="<%:kysec.CR.Common.EncodeByBase64.Encode(item.c_uq_userId.ToString()) %>"/>
            <table border="0" cellpadding="1" cellspacing="0" width="100%" >
            <tr  style="height:50px;" bgcolor="#d3ebf8">
                <td width="10%" ><div><label>用&nbsp;户&nbsp;名:</label></div></td>
                <td width="30%" align="left"><div class="td_Left"><span style="color:Green;"><%:item.c_vc_userName%></span></div></td>                
            </tr>
            
            <tr style="height:50px;" bgcolor="#97b9f0">
                <td width="10%"><div><label>密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码:</label></div> </td>
                <td width="30%" align="left"><div class="td_Left"><span style="color:Green;"><%:item.c_vc_passWord%></span></div></td>                
            </tr>   
                   
            <tr style="height:50px;"  bgcolor="#d3ebf8">
                <td><div><label>权&nbsp;&nbsp;&nbsp;&nbsp;限:</label></div></td>
                <td align="left"><div class="td_Left" style="color:Green;"><%if (item.c_i_pop == 0){ %>高级权限<%}else{ %>初级权限<%} %></div></td>
            </tr>
            
            <tr style="height:50px;"  bgcolor="#97b9f0">
                <td colspan="2"><div style="color:Red;"><label>注意:&nbsp;&nbsp;您的信息未完善，请尽快完善信息！</label><a href="<%=kysec.CR.MyUrl.WebData.WEBURL %>/User/FinishUserInfo?userId=<%=kysec.CR.Common.EncodeByBase64.Encode((item.c_uq_userId).ToString()) %>" title="点击完善信息" style="margin-left:20px;">完善信息</a></div></td></tr></table>
            </div>
            	
            <p>
            <a href="<%=kysec.CR.MyUrl.WebData.WEBURL %>/User/EditBasicInfo?id=<%:kysec.CR.Common.EncodeByBase64.Encode((item.c_uq_userId).ToString()) %>" style="margin:0px 20px 0px 0px;">修改</a>
           <%if (item.c_i_pop == 1)
             { %> <a href="javascript:;" onclick="deleteInfo();" >删除</a><%} %>
                <a href="<%=kysec.CR.MyUrl.WebData.WEBURL %>/User/InfoList" style="margin:0px 0px 0px 20px;">返回</a>
            </p><%}
          } %> 
        </div>
     </td>
    <td background="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/mail_rightbg.gif") %>">&nbsp;</td>
  </tr>
  <tr>
    <td valign="middle" background="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/mail_leftbg.gif") %>"><img src="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/buttom_left2.gif") %>" width="17" height="17" /></td>
      <td  valign="top" background="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/buttom_bgs.gif") %>"><img src="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/buttom_bgs.gif") %>" width="17" height="17" /></td>
    <td background="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/mail_rightbg.gif") %>"><img src="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/buttom_right2.gif") %>" width="16" height="17" /></td>
  </tr>
</table>
    </div>
</body>
</html>
